<div class="sub-nav">
<h3>新闻分类</h3>
    <ul>
        <? foreach ($this->categories as $category): ?>
        <li><a href="<?=$this->url(array('cid' => $category->cid));?>"><?=$category->name; ?></a></li>
        <? endforeach; ?>
    </ul>
</div>